﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayTargetAnimation : MonoBehaviour
{
    public string animationName;

    private Animator _animator;
    private void Awake()
    {
        _animator = GetComponent<Animator>();
    }

    private void OnEnable()
    {
        _animator.Play(animationName);
    }
}
